package com.cxl.price.top.service;

import javax.servlet.http.HttpServletRequest;

import com.taobao.api.ApiException;
import com.taobao.api.request.ItempropsGetRequest;
import com.taobao.api.request.ItemsOnsaleGetRequest;
import com.taobao.api.response.ItempropsGetResponse;
import com.taobao.api.response.ItemsOnsaleGetResponse;



public class TopItemCatAndPopsService extends TopBaseService{
	
	
	/**
	 * 获得在售商品response 带参数
	 * @return
	 * @throws ApiException 
	 */
	public ItempropsGetResponse  getItempropsGetResponse(ItempropsGetRequest req) throws ApiException 
	{
		ItempropsGetRequest def=new ItempropsGetRequest();
		def.setFields("pid,name,must,multi,prop_values,is_key_prop");
		req=getNewTaobaoRequest(req, def);
		return getTaobaoResponse(req!=null?req:def);
	}

	/**
	 * 获得在售商品response 不带参数
	 * @return
	 * @throws ApiException
	 */
	public ItempropsGetResponse  getItempropsGetResponse() throws ApiException 
	{
		return getItempropsGetResponse(null);
	}
	
	
}
